/* eslint-disable @typescript-eslint/no-explicit-any */
import axios, { type AxiosInstance, type AxiosResponse } from "axios";

const instance: AxiosInstance = axios.create({
  baseURL:'http://localhost:8080',
  timeout: 5000,
  withCredentials:true
});

instance.interceptors.response.use(
  (response:AxiosResponse<any>) => {
    return response;
  },
  (error:any) => {
    return Promise.reject(error);
  }
);

export default instance;